package com.study.cloud.service;

import com.study.cloud.entities.CommonResult;
import com.study.cloud.entities.Payment;
import feign.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Component
@FeignClient(value = "CLOUD-PAYMENT-SERVICE")
public interface PaymentFeignService {

    @RequestMapping(value = "/payment/getPaymentById/{id}", method = RequestMethod.GET)
    CommonResult getPaymentById(@PathVariable("id") Long id);
}
